interface CreateRuleGroupReq {
  hiveDatabase?: string
  hiveTableName?: string
  name?: string
}

interface PartitionDef {
  type?: string
  dsl?: string
  name?: string
}

interface CreateRuleReq {
  id?: number
  ruleCollectionId?: number
  name?: string
  analyseType?: string
  ruleLevel?: string
  calculateType?: string
  fieldsName?: null | string
  basePartitionDef?: PartitionDef
  checkPartitionDef?: PartitionDef
  fixedCompareWay?: string
  fixedValue?: string
  ifSwingUsed?: string
  swingUpper?: string
  swingLower?: string
}

export { CreateRuleGroupReq, CreateRuleReq, PartitionDef }
